﻿using System.Web;

using SY.WebSite.Utility;
using SY.Uap.Entity;

namespace SY.WebSite.Web
{
    /// <summary>
    /// Web Handler基类
    /// </summary>
    public class AdminWebHandler : InternalWebHandler
    {
        public override void ProcessRequest(HttpContext context)
        {
            base.ProcessRequest(context);

            if (CurrentUser.UserType != 100)
            {
                context.Response.Write(new JsonTransfer().SetError("权限错误"));
                context.Response.End();

                return;
            }
        }
    }
}